<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 篮球从5米高度落下，每次弹起的高度是上次的30%。问弹起几次之后篮球的高度低于0.1米？(参考年利率while循环例子
        var height=5;
        var times=0
        while (height>0.1){
            height=height*0.3;
            times++;
        } 
        console.log("弹起了"+times+"次后篮球的高度低于0.1m")
    </script>
</body>
</html>